import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:largefriends/res/lf_color.dart';
import 'package:largefriends/res/lf_string_ext.dart';

import '../../../res/lf_fonts.dart';
import '../../../res/lf_text_style.dart';

class LfMessageTip extends StatelessWidget {
  final String message;

  const LfMessageTip({Key? key, required this.message}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    ///消息发送时间
    return Padding(
      padding: EdgeInsets.symmetric(horizontal: 18.h),
      child: Text(
        message.trim().replaceBreak.toString(),
        style: lfTextStyle(
            sp: 12.sp, fontFamily: fontRegular, color: colorFEFEFE),
      ),
    );
  }
}
